import service from '../utils/request'

// 1.注册手机号码
export function user_docheckphone(payload = {}) {
    return service.post('/api/user/docheckphone',  payload)
}
// 2.手机验证码
export function user_dosendmsgcode(payload = {}) {
    return service.post('/api/user/dosendmsgcode',  payload)
}
// 3.验证验证码
export function user_docheckcode(payload = {}) {
    return service.post('/api/user/docheckcode',  payload)
}
// 4.注册
export function user_dofinishregister(payload = {}) {
    return service.post('/api/user/dofinishregister',  payload)
}
// 5.绑定用户名
export function user_bindusername(payload = {}) {
    return service.get('/api/user/bindusername',  {params:payload})
}
// 6.获取用户信息
export function user_info(payload = {}) {
    return service.get('/api/user/info', {params:payload})
}
// 7.登录
export function user_login(payload = {}) {
    return service.post('/api/user/login',  payload)
}
// 8.修改密码
export function user_updatePassword(payload = {}) {
    return service.get('/api/user/updatePassword', {params:payload})
}
// 9.全部订单
export function user_orderlist(payload = {}) {
    return service.post('/api/user/orderlist',  payload)
}